<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
	<title>hr-m-s</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/style.css" >
</head>
<body>
<form id="staff_edit" name="staff_edit" method="post" action="staff!delete">
  <table width="800" border="1" cellpadding="0" cellspacing="0" align="center">
    <tr>
      <th colspan="3" scope="col">离职员工基本信息</th>
    </tr>
    <tr>
      <td width="150">员工号<br></td>
      <td width="450"><s:property value="staffVO.staffID"/> </td>
      <td width="200">&nbsp;</td>
    </tr>
    <tr>
      <td width="150">姓名<br></td>
      <td width="450"><s:property value="staffVO.staffName"/> </td>
      <td width="200">&nbsp;</td>
    </tr>
    <tr>
      <td width="150">性别<br></td>
      <td width="450">
        <s:if test='staffVO.staffSex == "1"'>男</s:if>
        <s:else>女</s:else>
      </td>
      <td width="200">&nbsp;</td>
    </tr>
    <tr>
      <td width="150">邮箱<br></td>
      <td width="450"><s:property value="staffVO.staffEmail"/></td>
      <td width="200">用于保持员工的联系</td>
    </tr>
    <tr>
      <td>部门</td>
      <td><s:property value="staffVO.department.departmentName"/></td>
      <td>员工所属部门</td>
    </tr>
    <tr>
      <td>职位</td>
      <td><s:property value="staffVO.position.positionName"/></td>
      <td>部门中的职位</td>
    </tr>
    <tr>
      <td>入职时间</td>
      <td><s:date name="staffVO.staffCreateDate" format="yyyy-MM-dd hh:MM:ss"/></td>
      <td>年-月-日</td>
    </tr>
    <tr>
      <td colspan="3">
      	<input type="hidden" id="staffID" name="staffID" value='<s:property value="staff.staffID"/>'/>
        <input type="submit" id="submit" name="submit" value="离职" onclick="javascript:return confirm('离职后，数据不可恢复，确认继续？');"/>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:history.go(-1);">返回上一页</a>
	  </td>
    </tr>
  </table>
</form>
</body>
</html>
